/*
 * spi.h
 *
 * Created: 28.10.2011 17:22:42
 *  Author: Fabian
 */ 


#ifndef SPI_H_
#define SPI_H_

#include <avr/io.h>
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
#include <avr/signal.h>

#define DDR_SPI DDRB
#define PORT_SPI PORTB
#define DD_MOSI PB5
#define DD_MISO PB6
#define DD_SCK	PB7
#define DD_SS	PB4



void spi_init_master(void);
void spi_init_slave(void);
unsigned char SPI_RW(unsigned char value);



#endif
